package com.dly.hope.ro;

import com.dly.hope.type.FileType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * @author linyu.dai
 * @project myserve
 * @description
 * @creat 2022/8/31 09:33:18
 */
@Data
@ApiModel
public class FileRo {

    @ApiModelProperty(name = "fileType", value = "文件归类")
    private FileType fileType = FileType.OTHER;

    @ApiModelProperty(name = "multipartFiles", value = "多文件上传")
    @NotNull(message = "文件不能为空")
    private MultipartFile[] multipartFiles;
}
